package com.un.ebs.customer.domain;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.un.ebs.core.metadata.DbField;
import lombok.Data;

import java.util.Date;

/**
 * (CustomerAndDefunctExt)表实体类
 *
 * @author liubo
 * @since 2020-06-22 14:14:35
 */
@Data
@TableName("v_customer_and_defunct_ext")
@SuppressWarnings("serial")
public class CustomerAndDefunctExt extends Model<CustomerAndDefunctExt> {


    @DbField(name = "id", length = 40, precision = 0)
    private String id;

    @DbField(name = "customer_id", length = 40, precision = 0)
    private String customerId;

    @DbField(name = "defunct_id", length = 40, precision = 0)
    private String defunctId;

    @DbField(name = "cust_name", length = 100, precision = 0)
    private String custName;

    @DbField(name = "cust_id_number", length = 20, precision = 0)
    private String custIdNumber;

    @DbField(name = "cust_phone", length = 100, precision = 0)
    private String custPhone;

    @DbField(name = "cust_addr", length = 200, precision = 0)
    private String custAddr;

    @DbField(name = "cust_other_name", length = 100, precision = 0)
    private String custOtherName;

    @DbField(name = "cust_other_phone", length = 20, precision = 0)
    private String custOtherPhone;

    @DbField(name = "cust_source_dict", length = 100, precision = 0)
    private String custSourceDict;

    @DbField(name = "cust_level_dict", length = 100, precision = 0)
    private String custLevelDict;

    @DbField(name = "cust_user_id", length = 40, precision = 0)
    private String custUserId;

    @DbField(name = "cust_code", length = 100, precision = 0)
    private String custCode;

    @DbField(name = "customer_ent_id", length = 40, precision = 0)
    private String customerEntId;

    @DbField(name = "customer_tenant_id", length = 40, precision = 0)
    private String customerTenantId;

    @DbField(name = "customer_delete_status", length = -1, precision = 0)
    private Boolean customerDeleteStatus;

    @DbField(name = "defunct_name", length = 100, precision = 0)
    private String defunctName;

    @DbField(name = "sex", length = -1, precision = 0)
    private Integer sex;

    @DbField(name = "birthday", length = -1, precision = 0)
    private Date birthday;

    @DbField(name = "defunct_date", length = -1, precision = 0)
    private Date defunctDate;

    @DbField(name = "id_number", length = 20, precision = 0)
    private String idNumber;

    @DbField(name = "address", length = 200, precision = 0)
    private String address;

    @TableLogic
    @DbField(name = "is_delete", length = -1, precision = 0)
    private Boolean isDelete;

    @DbField(name = "tenant_id", length = 40, precision = 0)
    private String tenantId;

    @DbField(name = "code", length = 100, precision = 0)
    private String code;

    @DbField(name = "tomb_sku_id", length = 40, precision = 0)
    private String tombSkuId;

    @DbField(name = "tomb_bury_time", length = -1, precision = 0)
    private Date tombBuryTime;

    @DbField(name = "tomb_sku_name_as", length = 2101, precision = 0)
    private String tombSkuNameAs;

    @DbField(name = "personnel_id", length = 40, precision = 0)
    private String personnelId;

    @DbField(name = "sku_code", length = 100, precision = 0)
    private String skuCode;

    @DbField(name = "tomb_sku_name", length = 100, precision = 0)
    private String tombSkuName;


}